package lijun;

public class test {
    public static void main(String[] args) {
        Triangle triangle = new Triangle();
        System.out.println("面积和周长: " + triangle.getArea() + triangle.getArea());
        Triangle triangle1 = null;
        try {
            triangle1 = new Triangle(1.0, 2.0, 5.0);
            System.out.println("面积和周长: " + triangle1.getArea() + triangle1.getArea());
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
        Triangle triangle2 = null;
        try {
            triangle2 = new Triangle(25, 20, 37.5);
            System.out.println("面积和周长: " + triangle2.getArea() + triangle2.getArea());
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
